﻿using System;
using System.Runtime.Serialization;

namespace FingerPrintRecognizer.Common
{
    [DataContract]
    public class PluginInfo
    {
        public enum PluginType { DataLayer = 1, FRAlgorithm };

        #region Properties
        [DataMember]
        public string PluginName { get; set; }
        [DataMember]
        public string PluginAuthor { get; set; }
        [DataMember]
        public string Website { get; set;  }
        [DataMember]
        public string Description { get; set; }
        [DataMember]
        public PluginType Type { get; set; }
        [DataMember]
        public string Version { get; set; }
        [DataMember]
        public string DLLPath { get; set; }
        [DataMember]
        public String ClassName { get;  set; }
   
        #endregion
        
        public string getDescription() {
            return String.Format("Name: {0}\r\nAuthor: {1}\r\nWebSite: {2}\r\nVersion: {3}\r\nType: {4}\r\nDescription:{5}", this.PluginName, this.PluginAuthor,  this.Version, this.Description,this.Website);
        }

        public override string ToString()
        {
            return this.PluginName;
        }
    }
}
